package test.day12.test29;

class A {
    public int f(int x, int y) {
        return x + y;
    }

    public static int g(int n) {
        return n * n;
    }
}

class B extends A {
    public int f(int x, int y) {
        int m = super.f(x, y) + x * y;
        return m;
    }

    public static int g(int n) {
        int m = A.g(n) + n;
//        n * n + n;
        return m;
    }
}

public class E {
    public static void main(String args[]) {
        A a = new B();
        int m = a.f(10, 8);
        int n = a.g(3);
        System.out.printf("%d:%d", m, n);        //【代码】
    }
}
